From: Jan Beulich Date: Wed, 10 Jul 2013 11:45:55 +0000 (+0200) Subject: x86/HVM: key handler registration functions can be __init X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6650 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=521ce5beba17a34324dbe0077cca85d347cf2b7d;p=xen.git x86/HVM: key handler registration functions can be __init This applies to both SVM and VMX. Signed-off-by: Jan Beulich Acked-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/svm/vmcb.c b/xen/arch/x86/hvm/svm/vmcb.c index ab32e521f9..21292bbe97 100644 --- a/xen/arch/x86/hvm/svm/vmcb.c +++ b/xen/arch/x86/hvm/svm/vmcb.c @@ -310,7 +310,7 @@ static struct keyhandler vmcb_dump_keyhandler = { .desc = "dump AMD-V VMCBs" }; -void setup_vmcb_dump(void) +void __init setup_vmcb_dump(void) { register_keyhandler('v', &vmcb_dump_keyhandler); } diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c index ef0ee7f836..de9f592892 100644 --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -1492,7 +1492,7 @@ static struct keyhandler vmcs_dump_keyhandler = { .desc = "dump Intel's VMCS" }; -void setup_vmcs_dump(void) +void __init setup_vmcs_dump(void) { register_keyhandler('v', &vmcs_dump_keyhandler); }